package com.example.back.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;

@Data
@TableName("company")
public class Company {
    @TableId(value = "company_id", type = IdType.INPUT)
    private String companyId;

    @TableField("company_name")
    private String companyName;

    @TableField("phone")
    private String phone;

    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @TableField("create_time")
    private Date createTime;

    @TableField("create_name")
    private String createName;

    @TableField("deleted")
    @TableLogic
    private Integer deleted;
}
